package com.csj.DesignPattern.factory.factoryMethod;

//美式咖啡工厂，用于生产美式咖啡
//相当于ArrayList
public class AmericanCoffeeFacroty implements CoffeeFactory {
    @Override
    public Coffee CreateCoffee() {
        return new AmericanCoffee();
    }
}
/*
public class ArrayList<E> implements List<E>
{
    public Iterator<E> iterator() {
            return new Itr();
        }
}
 */